import { run } from './cli';
import { Configuration } from '~/core/Configuration/index';
const logger = Configuration.getLogger('linter');

const args = process.argv.slice(2);

const cwd = args.length === 0 ? undefined : args[0];

run(cwd)
    .then(() => {
        process.exit(0);
    })
    .catch((err) => {
        console.error(err);
        process.exit(1);
    });
